<div class="col-sm-12">

	<div class="panel panel-default">
	    <div class="panel-body">
	        <div class="form-group form-inline">
	            <div class="col-sm-10">
	                <label>
	                <input type="checkbox" ng-model="usedate" 
                    ng-true-value="1" ng-false-value="0"
                  	> 出游时间</label>&nbsp;&nbsp;
	                <div class="input-group">
	                	<input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date.lable" is-open="date.opened" 
                    readonly close-text="关闭" current-text="今天" clear-text="清除" />
                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default"
                                ng-click="dateOpen($event, date)">
                            <i class="glyphicon glyphicon-calendar"></i>
                        </button>
                    </span>
	                </div>
	                &nbsp;&nbsp;&nbsp;&nbsp;
	                <input type="text" class="form-control" ng-model="searchform.guide_name" placeholder="导游姓名">
	                &nbsp;&nbsp;&nbsp;&nbsp;
	                <input type="text" class="form-control" ng-model="searchform.guide_mobile" placeholder="导游电话">
	                &nbsp;&nbsp;&nbsp;&nbsp;
	                <select class="form-control" ng-model="searchform.orderstate">
	                    <option value="0">全部订单</option>
	                    <option value="1">已出票订单</option>
	                    <option value="2">待交款订单</option>
	                    <option value="3">已删除订单</option>
	                </select>
                 	 &nbsp;&nbsp;&nbsp;&nbsp;
	                <button type="button" class="btn btn-default search" ng-click="load()">立即搜索</button>
	            </div>
	            <div class="col-sm-2 text-right">
	                <button type="button" class="btn btn-info new" ng-click="create()">创建团</button>
	            </div>
	        </div>
	    </div>
	</div> <!--searchArea -->

<div class="panel panel-default">
	    <div class="panel-body">
	  <table class="table table-bordered">
	    <thead>
	      <tr>
	        <th class="col-md-2 text-center">出游信息</th>
	        <th class="col-md-3 text-center">预定团票</th>
	        <th class="col-md-2 text-center">导游信息</th>
	        <th class="col-md-2 text-center">备注</th>
	        <th class="col-md-1 text-center">最后操作</th>
	        <!-- <th class="col-md-1 text-center">最后操作人</th> -->
	        <th class="col-md-2 text-center">操作</th>
	      </tr>
	    </thead>
	    <tbody>
	      <tr ng-repeat="obj in objs">
	        <td class="text-center">
	        	计划人数：[{{obj.plan_count}}人]<br>
	        	预订人数：[{{obj.book_count}}人]<br>
	        	实际人数：[{{obj.actual_count}}人]<br>
	        	到达时间：[{{obj.arrival_date}}]
	        </td>
	        <td class="">
	        	{{obj.order_name}}<br>
	        	[订单编号][{{obj.code}}]
	        </td>
	        <td class="text-center">
	        	[{{obj.guide_name}}]<br>
	        	[{{obj.guide_mobile}}]<br>
	        	[{{obj.vehicle_number}}]<br>
	        	[团票码][{{obj.ticket_code}}]
	        </td>
	        <td class="text-center">{{obj.remark}}</td>
	        <td class="text-center">
	        	{{obj.update_by}}<br>
	        	{{obj.update_time}}

	        </td>
	       <!--  <td class="text-center">{{obj.update_by}}</td> -->
			<td class="text-center">
				<div ng-show="obj.del_flg=='0'">
					<div ng-show="obj.state=='0' && obj.xx=='0'">
						<a ng-click="signup(obj)" class="btn btn-warning btn-sm">预订</a>
						<a ng-click="edit(obj)" class="btn btn-success btn-sm">编辑</a>
			        </div>
			        <a ng-click="outticket(obj.code)" ng-show="obj.outstate=='0' && obj.book_count>0" class="btn btn-primary btn-sm">出票确认</a>
			        <a ng-click="detail(obj.code)" class="btn btn-info btn-sm">查询纪录</a>
			        <a ng-click="info(obj)" class="btn btn-warning btn-sm">修改订单</a>
			        <a ng-click="del(obj.code)" ng-show="obj.outstate=='0'" class="btn btn-danger btn-sm">删除订单</a>
		        </div>
		        <div ng-show="obj.del_flg=='1'">
			        <a ng-click="recovery(obj.code)" class="btn btn-warning btn-sm">恢复订单</a>
		        </div>
	        </td>
	      </tr>
	    </tbody>
	  </table>

	  <div class="text-right">

	    <pagination 
	      total-items="bigTotalItems" 
	      ng-model="bigCurrentPage" 
	      max-size="maxSize" 
	      class="pagination-sm" 
	      boundary-links="true" 
	      ng-change="load()"
	      items-per-page="itemsPerPage"
	      previous-text="上一页"
	      next-text="下一页"
	      first-text="首页"
	      last-text="末页"
	      rotate="false">
	    </pagination>

	  </div>
	    </div>
</div>
  
</div>
